 package com.yourwork.common.jpa;

import java.util.List;

import javax.persistence.Table;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.yourwork.model.TypeManagement;
@Repository
@Table(name="employeeType")
@Qualifier("EmployeeTypeRepositoey")
public interface TypeManagementRepositoey extends JpaRepository<TypeManagement, Integer>{
	//根据状态查询
	List<TypeManagement> findByStatus(int status);
	//根据id查询
	TypeManagement findById(int id);
	//根据状态分页查询
	List<TypeManagement> findByStatus(int status, Pageable pageable);
}
